﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using  ComDevFx.Arch.Base.Persister;
using ComDevFx.Arch.Base.Test.Domain;
using NHibernate;

namespace ComDevFx.Arch.Base.Test.Dao
{
    public  class UserInfoDao : DaoBase<UserInfo>
    {
        public int Count(string userName)
        {
            return Count(NHibernate.Criterion.Restrictions.Eq("UserName", userName));
        }

        public IList<UserInfo> GetList(string userName)
        {
            return Find(NHibernate.Criterion.Restrictions.Eq("UserName", userName));
        }
    }
}
